## 与UI窗体对应的业务逻辑类
import sys
from PyQt5.QtWidgets import QApplication, QDialog
from ui_demo import Ui_Dialog
from PyQt5.QtCore import Qt, pyqtSlot
from PyQt5.QtGui import QPalette


class QmyDialog(QDialog):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.ui = Ui_Dialog()
        self.ui.setupUi(self)





if __name__ == "__main__":
    app = QApplication(sys.argv)
    form = QmyDialog()
    form.show()
    sys.exit(app.exec_())
